home *** CD-ROM | disk | FTP | other *** search
-
-
- This program reads a BASIC program, saved in ASCII
- format by using the ",A" option of BASIC, and prepares either a
- neat listing, a cross-reference list, or both. The
- cross-reference list shows, for each symbol and each referenced
- line number, the line numbers in which they occur. This is a
- highly valuable aid to debugging. It assists the user in
- finding inadvertent uses of the same variable name for two
- different purposes, or of different variable names where the
- same one was intended, and in locating the source of improper
- branches.
-
- The program was contributed to the BPC by Jeff
- Friedhoffer, and has been revised by Jim Fennessey. It was
- originally published in the June 1981 issue of Interface Age
- magazine, and was adapted to the IBM PC by Steve Nossen. This
- program may not be sold and may not be used for commercial
- gain.
-
- The program asks for filespecs of BASIC programs to be
- processed. Up to 9 separate programs may be processed in a
- single run of XREF1. The programs to be processed should have
- been previously saved using the ",A" option to produce an ASCII
- file, and should be resident in one of the disk drives. The
- output specification defaults as the printer, but may also be
- the communication port or a disk drive. It is generally most
- convenient to ask for the output to be sent to a disk, using
- the same name as the original program, and the extension
- ".XRF". Then, once the XREF1 program has finished, you may use
- the DOS COPY command to copy filname.XRF to the printer.
-
- XREF1 provides an ongoing indication of its progress
- through the program files, and sounds a distinctive tone when
- it finishes. Thus, it may be left running unattended if
- desired.
-
- One feature worth noting is that if XREF1 encounters a
- line in the input program which ends in the characters 'PG
- then it will begin a new page of the output listing with that
- line of the input program. Thus, if your input program has
- several major sections, you can arrange it so that XREF1 starts
- each new major section on a new page.
-
- This Cross reference pgm came from the Baltimore PC Users Group
- Diskette offering.